/*********************************************************************************
 *      Copyright:  (C) 2025 LingYun<iot25@lingyun>
 *                  All rights reserved.
 *
 *       Filename:  sig.c
 *    Description:  This file 
 *                 
 *        Version:  1.0.0(04/03/25)
 *         Author:  LingYun <iot25@lingyun>
 *      ChangeLog:  1, Release initial version on "04/03/25 20:40:08"
 *                 
 ********************************************************************************/
#include<stdio.h>
#include<signal.h>
#include<unistd.h>

int g_stop = 0;

void sig_handle(int signum)
{
	printf("Catch signal [%d]\n",signum);
	g_stop = 1;
}
int main(void)
{
	signal(SIGINT,sig_handle);
	signal(SIGTERM,sig_handle);

	while(! g_stop)
	{
		;
	}
	printf("power off gprs\n");
}

